tools/libxl: Initialise both parts of ctx->sigchld_selfpipe[] to -1
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 18 Aug 2014 13:02:37 +0000 (14:02 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 27 Aug 2014 01:30:25 +0000 (02:30 +0100)
commitfa13f7b0c0f3d01741e35d573009503c3bf7b6a6
treeb7ea530500694bda19d7284e4b19404b6d530a2f
parent355ed81e1a6ec3987194023d2538a3c4e5d1619d
tools/libxl: Initialise both parts of ctx->sigchld_selfpipe[] to -1

Otherwise, if it is not used, libxl_ctx_free() will close fd 0.

Reported-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c